import 'package:flutter/material.dart';
import 'package:mobile_app.core/core/presentation/helpers/screen_util_mixin.dart';
import 'package:mobile_app.core/core/presentation/theme/theme.dart';
import 'package:mobile_app.home.core/core/presentation/widgets/rounded_card.dart';

class LexicalItemCard extends StatelessWidget with ScreenUtilMixin {
  const LexicalItemCard({
    required this.child,
    super.key,
  });

  final Widget child;

  double get _scaleFactor => logWidthScaleFactor;

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.all(8) * _scaleFactor,
      child: RoundedCard(
        radius: 10 * _scaleFactor,
        shadows: CoreTheme.of(context).lexicalItemCardShadows,
        child: SizedBox.expand(
          child: child,
        ),
      ),
    );
  }
}
